package game;
import game.objects.GameObject;
import tools.Point;
public class InitializeInfo {
	boolean posGiven, angleGiven, scaleGiven;
	public Point pos;
	float angle;
	float scale;
	public InitializeInfo(Point pos, float angle, float scale) {
		super();
		this.pos = pos;
		this.angle = angle;
		this.scale = scale;
		posGiven = true;
		angleGiven = true;
		scaleGiven = true;
	}
	public InitializeInfo(Point pos, float angle) {
		super();
		this.pos = pos;
		this.angle = angle;
		posGiven = true;
		angleGiven = true;
	}
	public InitializeInfo(Point pos) {
		super();
		this.pos = pos;
		posGiven = true;
	}
	public void initialize(GameObject go) {
		if (posGiven && angleGiven && scaleGiven)
			go.initialize(pos, angle, scale);
		if (posGiven && angleGiven && !scaleGiven)
			go.initialize(pos, angle);
		if (posGiven && !angleGiven && !scaleGiven)
			go.initialize(pos);
	}
}
